/*
 * @Description: 
 * @Author: yeeChen
 * @Date: 2022-12-15 17:16:03
 * @LastEditTime: 2022-12-15 17:20:40
 * @LastEditors: yeeChen
 */
// 引入服务器模块
const http = require('http')

// 创建web服务器实例
const serve = http.createServer()

// 给服务器实例添加请求事件
serve.on('request', function (req, res) {
    console.log('Someone visit our serve');
})

// 启动服务器
serve.listen(8080, function () {
    console.log('serve running at http://127.0.0.1:8080');
})